package com.livery.data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Car {
	
	private int id;
	private String make;
	private String model;
	private Date productionYear;
	private String color;
	private int engineDisplacement;
	private int mileage;
	private BigDecimal price;
	private int deposit;
	private boolean available;
	private List<Repair> repairs;
	private List<Booking> bookings;
	
	public Car(){
		repairs = new ArrayList<Repair>();
		bookings = new ArrayList<Booking>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMake() {
		return make;
	}

	public void setMake(String make) {
		this.make = make;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public Date getProductionYear() {
		return productionYear;
	}

	public void setProductionYear(Date productionYear) {
		this.productionYear = productionYear;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public int getEngineDisplacement() {
		return engineDisplacement;
	}

	public void setEngineDisplacement(int engineDisplacement) {
		this.engineDisplacement = engineDisplacement;
	}

	public int getMileage() {
		return mileage;
	}

	public void setMileage(int mileage) {
		this.mileage = mileage;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getDeposit() {
		return deposit;
	}

	public void setDeposit(int deposit) {
		this.deposit = deposit;
	}

	public boolean isAvailable() {
		return available;
	}

	public void setAvailable(boolean available) {
		this.available = available;
	}

	public List<Repair> getRepairs() {
		return repairs;
	}

	public void addRepairs(Repair repair) {
		repairs.add(repair);
	}

	public List<Booking> getBookings() {
		return bookings;
	}

	public void addBookings(Booking booking) {
		bookings.add(booking);
	}
	
}
